<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  //第一种定义方法的方式
  function f1(){
    console.log("f1")
  }
  f1();
  function f2(name,age){
    console.log(name+":"+age)
  }
  f2("张三",18)
  function f3(){
    return "我是返回值"
  }
  let info = f3();
  console.log(info)
  function f4(x,y){
    return x*y;
  }
  let result=f4(3,5);
  console.log(result);
  //第二种定义方法的方式
  let f5 = function (name,age) {
      console.log(name+":"+age);
  }
  f5("李四",28);
  //第三种定义方法的方式
  let f6 = new Function ("x","y","console.log(x*y)");
  f6(10,5);
</script>

</body>
</html>